package com.gradumate.shared;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class VerleenToegang implements IsSerializable { 
	
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private int studentNummer;
	
	/**
	 * Constructor
	 */
	public VerleenToegang() {
		
	}

	/**
	 * Construcotor
	 * @param int met studentNummer
	 */
	public VerleenToegang(int studentNummer) {
		this.studentNummer = studentNummer;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the studentNummer
	 */
	public int getStudentNummer() {
		return studentNummer;
	}

	/**
	 * @param studentNummer the studentNummer to set
	 */
	public void setStudentNummer(int studentNummer) {
		this.studentNummer = studentNummer;
	}
}
